package com.shaohai.live;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

import com.shaohai.live.ui.FSActivity;


public class StartActivity extends FSActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_start);
        initializeView();
    }

    @Override
    protected void initializeView() {
        Handler handler = new Handler();
        handler.postDelayed(() -> {
            Intent intent = new Intent(StartActivity.this, LoginActivity.class);
            startActivity(intent);
            finish();
        }, 3000);//3秒后执行Runnable中的run方法
    }
}
